package com.bootdo.wx.dao;

import com.bootdo.wx.domain.GoodsSpikeDO;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

/**
 * 秒杀
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2019-05-27 17:56:21
 */
@Mapper
public interface GoodsSpikeDao {

	GoodsSpikeDO get(String id);
	
	List<GoodsSpikeDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(GoodsSpikeDO goodsSpike);
	
	int update(GoodsSpikeDO goodsSpike);
	
	int remove(String id);
	
	int batchRemove(String[] ids);

	List<Map<String,Object>> getGoodsByTime(Map<String, Object> paramMap);

	int updateByOld(Map<String, Object> params);

	List<Map<String,Object>> getSpikeList(Map<String, Object> map);

	int getSpikeListCount(Map<String, Object> map);

	//首页-查询秒杀商品
	List<Map<String,Object>>getGoodsList(Map<String, Object> paramMap);

	//搜索-热销榜
	List<Map<String, Object>> geToptList(Map<String, Object> query);
}
